package com.shensi.adminCollect.service.applet.impl;

import com.shensi.adminCollect.domain.applet.QuerySummaryRequest;
import com.shensi.adminCollect.domain.applet.QuerySummaryResponse;
import com.shensi.adminCollect.mapper.applet.QuerySummaryMapper;
import com.shensi.adminCollect.service.applet.IQuerySummaryService;
import com.shensi.adminCollect.domain.station.StationOillGun;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;



@Service
public class QuerySummaryService implements IQuerySummaryService {

    @Autowired
    private QuerySummaryMapper querySummaryMapper;

    @Override
    public List<Integer> selectStationIdListByEnterpriseId(Integer enterpriseId) {
        return querySummaryMapper.selectStationIdListByEnterpriseId(enterpriseId);
    }

    @Override
    public QuerySummaryResponse selectSumData(QuerySummaryRequest querySummaryRequest) {
        return querySummaryMapper.selectSumData(querySummaryRequest);
    }

    @Override
    public List<QuerySummaryResponse> selectSumOilGroupData(QuerySummaryRequest querySummaryRequest) {
        return querySummaryMapper.selectSumOilGroupData(querySummaryRequest);
    }

    @Override
    public List<QuerySummaryResponse> selectSumEchartData(QuerySummaryRequest querySummaryRequest) {
        return querySummaryMapper.selectSumEchartData(querySummaryRequest);
    }

    @Override
    public List<StationOillGun> selectGunlist(StationOillGun stationOillGun) {
        return querySummaryMapper.selectGunlist(stationOillGun);
    }


}
